<?php
class Job_specialty_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
    }
    
    function get($data = null)
    {
    	if (isset($data['idcategory']) && is_numeric($data['idcategory']))
    	{
    		$this->db->where('idcategory', $data['idcategory']);
    	}
    	
    	$this->db->order_by('name');
    	return $this->db->get('job_specialty');
    }
}
?>